#include <QPalette>

#include "plugin.h"

namespace KyManagerPluginTemplate
{

Plugin::~Plugin()
{

}

std::string Plugin::name()
{
    return "plugin-template";
}

std::string Plugin::nameCN()
{
    return "";
}

std::string Plugin::description()
{
    return "";
}

QWidget * Plugin::createWidget()
{
    QWidget *widget = new QWidget();

    QPalette palette(widget->palette());
    palette.setColor(QPalette::Background , Qt::red);
    widget->setAutoFillBackground(true);
    widget->setPalette(palette);

    return widget;
}

KyManagerPlugin *PluginProvider::create() const
{
    return new Plugin();
}

}